<?php
    include_once 'common.inc';
    if ($_POST['method'] === 'comments') {
        $ok = 1;
        if ($gid !== $_POST['gid'])
            if (verifyGid($_POST['gid']) && isOwner($uid, $_POST['gid'])) {
                $gid = $_POST['gid'];
                $values = loadValues($gid);
                setCurrentGid($uid, $gid);
                getCurrentGid($uid, $game);
            } else
                $ok = 0;
        if ($ok) {
            $game['comments'] = $_POST['comments'];
            setGameOptions($gid, $game);
        }
    }
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="swot.css" type="text/css" rel="stylesheet"/>
    </head>
    <body>
        <script type="text/javascript">
            window.location = "result.php";
        </script>
    </body>
</html>
